package com.imooc.firstappdemo.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Builder;

import java.text.MessageFormat;

/**
 * 用户模型
 *
 * @author caojl
 * @create 2018/03/20
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class User {

    /**
     * 用户ID
     */
    private int id;

    /**
     * 用户名称
     */
    private String name;

    @Override
    public String toString(){
        return "User{id=" + id + ",name='" + name + "'}";
    }
}
